<?php
require_once(dirname(__FILE__)."/../core/safeParam.php");
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/news.php');

$module = new module();
$function = $_GET['function'];


switch($function) {
case "add" :
  $module->Add($_POST);
  break;

case "edit" :
  $module->Edit($_POST);
  break;

case "delete" :
  $module->Delete($_GET);
  break;

}
?>
